package cn.wipace.actionlib.network;

import cn.wipace.actionlib.model.Result;
import cn.wipace.actionlib.model.UploadResult;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/5/22.
 */

public interface Api {

    @GET("getResult")
    Observable<Result> getUserScoreData(@Query("uid") long uid);//ResultData是返回的数据类型

    @POST("uploadResult")
    Observable<Result> uploadUserScoreData(@Body UploadResult score);//ResultData是返回的数据类型

}
